<template>
  <div class="layout">
    <aside class="sidebar">
      <nav>
        <ul>
          <li><router-link to="/">文件管理</router-link></li>
          <!-- <li><router-link to="/details">项目说明</router-link></li> -->
          <li><router-link to="/about">关于我们</router-link></li>
        </ul>
      </nav>
    </aside>
    <main>
      <slot></slot>
    </main>
  </div>
</template>

<script lang="ts">
export default {
  name: 'Layout',
  mounted() {
    console.log('Layout component mounted');
  }
}
</script>

<style scoped>
.layout {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #f8f9fa;
  padding: 20px;
}

.sidebar nav ul {
  list-style-type: none;
  padding: 0;
}

.sidebar nav ul li {
  margin-bottom: 10px;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #333;
}

.sidebar nav ul li a.router-link-exact-active {
  font-weight: bold;
  color: #42b983;
}

main {
  flex-grow: 1;
  padding: 20px;
}
</style>
